package net.lahuobao.finance.entity.depart;

import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * Created by Administrator on 2016/9/19.
 */

@Entity
@Table(name = "lahuobao.cargo_owner_user")
@DynamicUpdate(true)
@DynamicInsert(true)
public class CargoOwnerUser {

    private long                userId;         //用户编号
    private long                organizationId; //组织机构编号


    @Id
    @Column(name = "user_id")
    public long getUserId() {
        return userId;
    }

    public void setUserId(long userId) {
        this.userId = userId;
    }

    @Column(name = "organization_id")
    public long getOrganizationId() {
        return organizationId;
    }

    public void setOrganizationId(long organizationId) {
        this.organizationId = organizationId;
    }
}
